<template>
    <div class="locked">
        <div class="icon">
            <img src="http://penguin-courses.oss-cn-shanghai.aliyuncs.com/image/penguin-sad.jpg">
        </div>
        <div class="text-center">
            <div class="status-title">访问失败</div>
            <div class="tip">{{courseName}}正在停课中~<br>等待群主开课后才能继续学习哦</div>
        </div>
    </div>
</template>

<script>
    import { getCourseConfByVisitor } from '@/api'
    export default {
        data(){
            return {
                courseName: '课堂'
            }
        },
        created(){
            getCourseConfByVisitor({holderId: this.$route.params.id}).then(res => {
                this.courseName = res.data.result.name
            })
            
        }
    }
</script>

<style scoped lang="scss">
    .locked{
        .icon{
            text-align: center;
            padding-top: 1rem;
            img{
                width: 1.75rem;
            }
        }
        .status-title{
            font-size: 18px;
            font-weight: bold;
            padding: .2rem 0 .1rem;
        }
        .tip{
            color: var(--tipColor);
            height: .4rem;
            line-height: .2rem;
        }
    }
</style>